package com.zzptc.sky.exam_dengjing;

import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class Main4Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main4);
        SharedPreferences sharedPreferences=Myutil.getfrist();
        SharedPreferences.Editor editor=sharedPreferences.edit();
        editor.putBoolean("fla",true);
        editor.commit();
        findViewById(R.id.frist).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(Main4Activity.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
